package com.example.provider.qiniuyun;

/**
 * All rights Reserved, Designed By www.maihaoche.com
 * 该抽象类本来的目的：在IFileService基础上，用于基于七牛云的功能拓展。
 * @Package com.example.provider.qiniuyun
 * @author: 红雪（hongxue@maihaoche.com）
 * @date: 2019/1/28 4:24 PM
 * @Copyright: 2017-2020 www.maihaoche.com Inc. All rights reserved.
 * 注意：本内容仅限于卖好车内部传阅，禁止外泄以及用于其他的商业项目
 */
public abstract class AbstractQiniuUpload implements IFileService {
    private QiniuBase qiniuBase;

    public AbstractQiniuUpload(QiniuBase qiniuBase){
        this.qiniuBase = qiniuBase;
    }


    protected String programDomain(String domainUrl){
        if (domainUrl.lastIndexOf("/")!=domainUrl.length()-1){
            domainUrl+="/";
        }
        return domainUrl;
    }

}
